<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" isELIgnored="false"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@include file="commen/path.jsp" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>电商平台的后台管理系统</title>
		<link rel="stylesheet" href="${path}/css/main.css" />
		<script type="text/javascript" src="${path}/js/jquery-3.3.1.min.js"></script>
	</head>
	<body>
		<div id="content">
			<%@ include file="commen/head.jsp" %>
			<div class="middle">
				 <%@ include file="commen/left.jsp" %>
				  <div class="right">
				  
                   <table>
                     <tr>
                       <td>商品id</td>
                        <td>商品名</td>
                         <td>类型</td>
                          <td>图片</td>
                     </tr>
                     <c:forEach items="${goods }" var="g">
                     <tr>
                      <td>${g.gid }</td>
                        <td>${g.gname }</td>
                         <td>${g.cname }</td>
                          <td>
                           <c:forTokens items="${g.imgpath }" delims=";" var="i">
                            <img src="${path }/upload/${i}" style="width:200px;height:200px;">
                           </c:forTokens>
                          </td>
                          </tr>
                     </c:forEach>
                     
                   </table>			  	  
		
				  	 <a href="${path }/goods/add">增加</a> 
				  </div>
			</div>
			<%@ include file="commen/foot.jsp" %>
			
		</div>
		
		
	</body>
</html>
